<template>
    <div class="container">
        <div id="siderbar">
            <ul>
                <li>
                    <router-link to="/user/profile">个人信息</router-link>
                </li>
                <li>
                    <router-link to="/user/settings">用户设置</router-link>
                </li>
            </ul>
        </div>
        <div class="main-body">
            <router-view></router-view>
        </div>
    </div>
</template>

<script>
export default {
    mounted(){
        console.log(this.$route);
        console.log(history.state.params);
        const {query} = this.$route
        console.log('query',query);
    }
}

</script>
<style>
.container{
    display: flex;
    height: 100%;
}
#siderbar {
    width: 250px;
    height: 100%;
    background:#000;
}
#siderbar li a {
    display: block;
    height: 40px;
    line-height: 40px;
    text-decoration: none;
    color: aqua;
}
#siderbar li a.router-link-active {
    background-color: turquoise;
}

</style>